import App from './App'
import store from './store'
import fun from './static/js/common'
import config from "./static/js/config";
import md5 from './static/js/md5.min'
import music from './static/js/music.js'
import request from './static/js/request'
import api from '@/common/vmeitime-http/'
import Vue from 'vue'

Vue.config.productionTip = false
App.mpType = 'app'

// 全局挂载后使用
Vue.prototype.$api = api
Vue.prototype.$music = music

// import uView from '@/uni_modules/uview-ui'
// Vue.use(uView)
// import share from './static/js/share.js'     //导入js文件   
//分享功能
// Vue.mixin(share)        //挂载到全局
// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$t.mixin.js')
Vue.mixin(vuexStore)

// 引入TuniaoUI对小程序分享的mixin封装
let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)

const app = new Vue({
  store,
  ...App
})

app.$mount()